package ooday02;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/22 10:12
 */
public class Doctor extends Person{
    /**定义变量*/
    String title;
    public Doctor(String name,int age,String address,String title) {
       super(name,age,address);
        this.title = title;
    }

    /** 定义方法*/
    void cut(){
        System.out.println(name+"正在做手术...人送外号"+title);
    }
}
